package mr.zhang.service;

import mr.zhang.dao.domain.Sub_Button;

import java.util.List;



public interface SubButtonService {

	//添加二级菜单
	public void saveSubButton(Sub_Button sub_Button);
	
	//删除二级菜单
	public void deleteSubButton(int id);
	
	//更新二级菜单
	public void updateSubButton(Sub_Button sub_Button);
	
	//根据一级菜单的id删除一级菜单下面的全部二级菜单
	public void deleteAllSubButton(int button_id);
	
	//根据一级菜单的id查询一级菜单下面的全部二级菜单
	
	public List<Sub_Button> queryAllSubButton(int button_id);
	
	//根据id查询二级菜单
	public Sub_Button querySub_ButtonById(int id);
	

}
